package com.gzbsoft.sc.modules.app.controller;
import com.gzbsoft.sc.common.annotation.Login;
import com.gzbsoft.sc.common.annotation.LoginUser;
import com.gzbsoft.sc.common.utils.R;
import com.gzbsoft.sc.modules.sys.entity.JxUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
@Api("用户")
@RestController
@RequestMapping("/app/user")
public class AppUserController {
    @Login
    @GetMapping("/")
    @ApiOperation("用户信息")
    public R info(@ApiIgnore @LoginUser JxUser user) {
        return R.ok().setObj(user);
    }
}
